﻿<%@ Page Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="contactView.aspx.cs" Inherits="WEB.contact.contactView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    联系人信息
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td align="center">
                客户搜索：<asp:TextBox ID="tbContSearch" runat="server"></asp:TextBox>
                <asp:Button ID="btnContSearch" runat="server" Text="  查 询" OnClick="btnContSearch_Click"
                    CssClass="Submit_Query" />
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvContact" runat="server" AutoGenerateColumns="False" OnRowDeleting="gvContact_RowDeleting"
                    OnRowEditing="gvContact_RowEditing" ForeColor="Black" Class="distance" AllowPaging="True"
                    DataKeyNames="ID" OnPageIndexChanging="gvContact_PageIndexChanging" CellPadding="4"
                    GridLines="Vertical" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                    BorderWidth="1px" Width="1000px" PageSize="20">
                    <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PreviousPageText="上一页" />
                    <Columns>
                        <asp:BoundField DataField="Customer_ID" HeaderText="公司编号">
                            <HeaderStyle Width="55px" />
                        </asp:BoundField>
                        <%--            <asp:BoundField DataField="CustomerName" HeaderText="公司名称" />--%>
                        <asp:BoundField DataField="CustomerName" HeaderText="公司名字" />
                        <asp:BoundField DataField="CPName" HeaderText="联系人姓名" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CPSex" HeaderText="性别" >
                        <HeaderStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CPPost" HeaderText="职位" >
                        <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MobilePhone" HeaderText="手机">
                        <HeaderStyle Width="110px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CPPhone" HeaderText="固定电话" >
                        <HeaderStyle Width="110px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Email" HeaderText="Email">
                            <HeaderStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remarks" HeaderText="备注" />
                        <asp:CommandField ShowEditButton="True" ButtonType="Button">
                            <ControlStyle CssClass="Submit_gv" />
                        <HeaderStyle Width="50px" />
                        </asp:CommandField>
                        <asp:CommandField ShowDeleteButton="True" ButtonType="Button">
                            <ControlStyle CssClass="Submit_gv" />
                        <HeaderStyle Width="50px" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" Font-Size="Small"
                        HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" />
                    <AlternatingRowStyle BackColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="增加联系人" CssClass="Submit_yellowbig" />
            </td>
        </tr>
    </table>
</asp:Content>
